﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Likedeal.aspx.vb" Inherits="task3.Likedeal" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function img_onclick() {

        }

// ]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="AccessDataSource1">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="Dealname" HeaderText="Dealname" 
                    SortExpression="Dealname" />
                <asp:BoundField DataField="DealDescription" HeaderText="DealDescription" 
                    SortExpression="DealDescription" />
                <asp:BoundField DataField="Thumbnail" HeaderText="Thumbnail" 
                    SortExpression="Thumbnail" />
            </Columns>
        </asp:GridView>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/DealsDb.accdb" 
            SelectCommand="SELECT [ID], [Dealname], [DealDescription], [Thumbnail] FROM [DealDetail] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" DefaultValue="1" />
            </SelectParameters>
        </asp:AccessDataSource>
    </p>
    <p>
        <asp:Button ID="btn_like" runat="server" Text="like" />
        <asp:Image ID="img_like" runat="server" ImageUrl="~/smiley.png" />
        <asp:Button ID="btn_like0" runat="server" Text="dislike" Visible="false" />
    </p>
</asp:Content>
